package com.ow.dva.module.park.service.impl;

import com.ow.dva.module.base.entity.param.DvaPage;
import com.ow.dva.module.base.service.impl.DvaServiceImpl;
import com.ow.dva.module.park.entity.Parkinglot;
import com.ow.dva.module.park.mapper.ParkinglotMapper;
import com.ow.dva.module.park.service.ParkinglotService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 车位表 服务实现类
 * </p>
 *
 * @author YanZengBao
 * @since 2020-02-19
 * @version V1.0
 */
@Service
public class ParkinglotServiceImpl extends DvaServiceImpl<ParkinglotMapper, Parkinglot> implements ParkinglotService {

//    @DvaCache5M
    @Override
    public DvaPage<Parkinglot> page(DvaPage<Parkinglot> page, Map<String, Object> param) {

        return baseMapper.page(page,param);
    }

    @Override
    public boolean batchSave(Parkinglot parkinglot) {
        return baseMapper.batchSave(parkinglot);
    }

    @Override
    public boolean untyingParkinglot(Parkinglot parkinglot) {
        return baseMapper.untyingParkinglot(parkinglot);
    }

    @Override
    public boolean quickUnyingByAreaId(String areaId) {
        return baseMapper.quickUnyingByAreaId(areaId);
    }

    @Override
    public Integer parkinglotUpLoad(Parkinglot parkinglot) {
        return baseMapper.insert(parkinglot);
    }

    @Override
    public Integer deleteAll() {
        return baseMapper.deleteAll();
    }

}
